package engine.game;

import java.awt.Image;

import engine.Logger;


public class BaseGame {
	public static final int TYPE_UNSUPPORTED = 0;
	public static final int TYPE_AVG_2D = 1;

	public static final int DEFAULT_FPS = 30;

	private long period;	// Period between drawing in nanoseconds

	private volatile boolean running;
	private volatile boolean paused;
	private volatile boolean gameOver;

	private int type = TYPE_UNSUPPORTED;
	private int score;

	private Logger logger;
	private Image background;

	public BaseGame(int type, int default_fps) {
		logger = Logger.getInstance();
		this.type = type;
		score = 0;
		period = 1000000000L / default_fps;
		running = false;
		paused = false;
		gameOver = false;
	}

	public void update() {
		
	}

	public void setRunning(boolean running) {this.running = running;}
	public boolean isRunning() {return running;}

}